package mymodel

import (
	"github.com/gogf/gf/v2/os/gtime"
)

// AppDeviceResponse 设备列表响应模型
type AppDeviceResponse struct {
	Id             uint64      `json:"id"             orm:"id"               description:""`
	DeviceNo       string      `json:"deviceNo"       orm:"device_no"        description:"设备编号"`
	Name           string      `json:"name"           orm:"name"             description:"显示名称"`
	ChannelNo      string      `json:"channelNo"      orm:"channel_no"       description:"通道号"`
	ProductId      int64       `json:"productId"      orm:"product_id"       description:"所属产品"`
	DeptId         uint64      `json:"deptId"         orm:"dept_id"          description:"组织id"`
	GroupId        int64       `json:"groupId"        orm:"group_id"         description:"设备分组id"`
	Type           int         `json:"type"           orm:"type"             description:"设备类型【0 直连设备 1网关设备 2网关子设备】"`
	Remark         string      `json:"remark"         orm:"remark"           description:"备注"`
	Lng            float64     `json:"lng"            orm:"lng"              description:"经度"`
	Lat            float64     `json:"lat"            orm:"lat"              description:"纬度"`
	Address        string      `json:"address"        orm:"address"          description:"地址"`
	Image          string      `json:"image"          orm:"image"            description:"图片"`
	Status         int         `json:"status"         orm:"status"           description:"状态【1离线 2在线  】"`
	StatusTime     *gtime.Time `json:"statusTime"     orm:"status_time"      description:"状态时间"`
	CreatedAt      *gtime.Time `json:"createdAt"      orm:"created_at"       description:"创建时间"`
	UpdatedAt      *gtime.Time `json:"updatedAt"      orm:"updated_at"       description:"更新时间"`
	MqttServer     string      `json:"mqttServer" orm:"mqtt_server" description:"mqtt_server"`
	DatabaseServer string      `json:"databaseServer" orm:"database_server" description:"database_server"`
	OssServer      string      `json:"ossServer" orm:"oss_server" description:"oss_server"`
	ParentId       uint64      `json:"parentId"       orm:"parent_id"        description:"父id"`
	Version        string      `json:"version"        orm:"version"          description:"当前固件版本"`
	OpenStatus     int         `json:"openStatus"     orm:"open_status"      description:"激活状态【0非激活 1激活】"`
	OpenStatusTime *gtime.Time `json:"openStatusTime" orm:"open_status_time" description:"激活时间"`
	NetworkType    int         `json:"networkType"    orm:"network_type"     description:"入网方式1-4g，2-lora"`
	DeptName       string      `json:"deptName"`
	ProductName    string      `json:"productName"`
	GroupName      string      `json:"groupName"`
}
